import request from '@/utils/request'

//获取账号信息
export function getAccountInfo() {
    return request({
        url: '/user/account',
        method: 'get',
        params: {
            timestamp: new Date().getTime()
        }
    })
}

//获取用户歌单
export function getUserPlayList(uid) {
    return request({
        url: '/user/playlist',
        method: 'get',
        params: {
            uid
        }
    })
}



//签到
export function dailySignin() {
    return request({
        url: '/daily_signin',
        method: 'get'
    })
}


//更新用户信息
export function updateUserProfile(params) {
    return request({
        url: '/user/update',
        method: 'get',
        params: {
            ...params,
            timestamp: new Date().getTime()
        }
    })
}